package cn.moukou.dictator.dao.relation;


import cn.moukou.dictator.pojo.relation.STUDENT_TEACHER;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;

import java.util.List;

public interface STUDENT_TEACHER_DAO extends Neo4jRepository<STUDENT_TEACHER, Long> {

    @Query("match res=(start:KVNode) -[r:STUDENT_TEACHER]-> (end:KVNode) return res")
    List<STUDENT_TEACHER> customFindQuery();
}
